<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.fit.user.dao.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
<%
String err = (String)session.getAttribute("erro");
String success = (String)session.getAttribute("success");

if(err == "erro"){
%>
<h1><font color = "red">您输入的用户名错误，请重新输入</font></h1>
<%
}
if(success == "success")
{
%>
<h1><font color = "blue">修改密码成功，请登陆！</font></h1>
<%
}
 %>

  </head>
  
  <body>
  <%
String modify = request.getParameter("modify");
if(modify != null && modify .equals("mod"))
{
%>
  <form method="post" action="servlet/IsLogin" >
 	 用户名: <input type ="text" name = "dutyMan"><br>
       原始密码： <input type = "text" name = "pwd"><br/>
            新密码： <input type = "text" name = "newpwd"><br/>
  			<input type = "hidden" name = "flag" value = "mod_pwd">
  			<input type = "submit" value = "提交">
  			<input type ="reset">
  </form>
  <%
}else{
%>
  <form method="post" action="servlet/IsLogin" >
  用户名：<input type ="text" name = "dutyMan"><br>
       密码： <input type = "text" name = "pwd"><br/>
 权限：<select name = "privity">
 
 <option>普通用户</option>
 <option>管理员</option>
      </select><br/>
       <input type="hidden"  name = "flag" value = "isLog">
          <input type = "submit" value = "提交">
          <input type ="reset">
  </form>
  
  <a href = "login.jsp?modify=mod">修改密码</a>
<%
}

 %>

  </body>
</html>
